x=int(input("请输入本月国内通话时长:"))
y=int(input("请输入本月短信条数:"))
z=int(input("请输入本月已用数据流量:"))
if x>250 and y>100 and z>50:
    xm=(x-250)*0.25
    ym=(y-100)*0.1
    zm=(z-50)*0.3
    m=xm+ym+zm+58
if x<250 and y>100 and z>50:
    xm=0
    ym=(y-100)*0.1
    zm=(z-50)*0.3
    m=xm+ym+zm+58
if x>250 and y<100 and z>50:
    xm=(x-250)*0.25
    ym=0
    zm=(z-50)*0.3
    m=xm+ym+zm+58
if x>250 and y>100 and z<50:
    xm=(x-250)*0.25
    ym=(y-100)*0.1
    zm=0
    m=xm+ym+zm+58
if x<250 and y<100 and z>50:
    xm=0
    ym=0
    zm=(z-50)*0.3
    m=xm+ym+zm+58
if x<250 and y>100 and z<50:
    xm=0
    ym=(y-100)*0.1
    zm=0
    m=xm+ym+zm+58
if x>250 and y<100 and z<50:
    xm=(x-250)*0.25
    ym=0
    zm=0
    m=xm+ym+zm+58
    print("你应缴话费:{}元".format(m))
else:
    print("你应缴话费58元")